<template>
	<view>
		<u-navbar :title="$ziti($store.state.ziti,'企业讯息')" is-back :border-bottom="true" title-bold />
		<block v-for="(item,index) in list1">
			<view class="carp">
				<image :src="item.logo_image"
					style="height: 309rpx;width: 100%;width: 90%;margin: 0 auto;display: block;"></image>
				<view class="body">
					<text>{{item.name}}</text>
					<text>{{$ziti($store.state.ziti,'發佈時間')}}：{{item.create_time}}</text>
				</view>
			</view>
			<view style="height: 1rpx;background: #E5E5E5;">
			</view>
		</block>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: "测试测试测试",
				list: []
			};
		},
		onShow() {
			this.api('index/enterpriseList', {
				type: 2
			}).then(res => {
				this.list = res.data
			})
		},
		computed: {
			list1() {
				if (this.$store.state.ziti == 1) {
					return this.list.data
				} else {
					return this.list.multiply
				}
			},
		},
	}
</script>

<style lang="scss">
	.carp {
		padding-top: 30rpx;
	}

	.body {
		padding: 30rpx;

		text:nth-of-type(1) {
			font-size: 32rpx;
			font-family: Source Han Sans CN;
			font-weight: 500;
			color: #181818;
			display: block;
		}

		text:nth-of-type(2) {
			display: block;
			margin-top: 15rpx;
			font-size: 24rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #999999;
		}
	}
</style>
